package com.woniuxy.pojo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/26 23:05
 * @Description TODO
 */
public class Order {
    private Integer id;
    private String orderno;
    private int userid;
    private String ordertime;
    private String accept;
    private String telphone;
    private String address;
    private BigDecimal money;
    private String paytype;
    private String status;

    private List<OrderItem> OrderItems;

    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderno='" + orderno + '\'' +
                ", userid=" + userid +
                ", ordertime='" + ordertime + '\'' +
                ", accept='" + accept + '\'' +
                ", telphone='" + telphone + '\'' +
                ", address='" + address + '\'' +
                ", money=" + money +
                ", paytype='" + paytype + '\'' +
                ", status='" + status + '\'' +
                ", OrderItems=" + OrderItems +
                '}';
    }

    public List<OrderItem> getOrderItems() {
        return OrderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        OrderItems = orderItems;
    }

    public Order(Integer id, String orderno, int userid, String ordertime, String accept, String telphone, String address, BigDecimal money, String paytype, String status, List<OrderItem> orderItems) {
        this.id = id;
        this.orderno = orderno;
        this.userid = userid;
        this.ordertime = ordertime;
        this.accept = accept;
        this.telphone = telphone;
        this.address = address;
        this.money = money;
        this.paytype = paytype;
        this.status = status;
        OrderItems = orderItems;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public String getAccept() {
        return accept;
    }

    public void setAccept(String accept) {
        this.accept = accept;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}
